Repository navigation
feat(fleet-queue): AUTH-04 managed body section capability policy (code#9431) - #9554
Conversation
…de#9431) Default unsupported absent a verified conditional-write capability; best-effort marked-section updates only behind an explicit opt-in acknowledging human-clobber risk, never labelled optimistic locking. Typed refusals for malformed markers, outside-bytes alteration, and concurrent edits; timeout-after-PATCH reconciles as unknown until re-read. Named oracle pmo_auth_managed_body_requires_verified_conditional_write_capability listed and passing; work::authority module 6/6 tests pass.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review Disposition note (task 16032, lane code-a): the first Codex review run failed to complete (review summary comment 6854881972, no findings posted). Retrying once here. If the retry also fails to run, there are no Codex findings to disposition on this PR; verification rests on the targeted tests recorded in the PR body (named oracle listed + passing, work::authority 6/6). |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Implements AUTH-04 (code#9431, task 16032): the managed body section capability policy in a new pure module
pkgs/fleet/crates/fleet-queue/src/work/authority.rs(plussrc/work/mod.rsand thelib.rsmodule line).Gate: design PR #9225 merged 2026-11-13T13:36:36Z; contract doc validated on main at 84131d4 before implementation.
What the policy encodes (design component 9208, managed content honesty constraint):
BestEffortOptIn) that names an approver and acknowledges the human-clobber risk; the guarantee is labelled best-effort/no-CAS with the race disclosed.reconcile_after_patch_timeoutrequires a re-read and resolves Applied / NotApplied / Diverged / StillUnknown before any new plan.No adapter (
gh.rs) changes: capability is not proven, so per the slice the adapter is touched only if capability is proven. No persistence, no new crate, no production rollout.Tests (oracle first, per the slice done command):
cargo test --manifest-path pkgs/fleet/Cargo.toml -p fleet-queue --lib --features client,queue-broker pmo_auth_managed_body_requires_verified_conditional_write_capability -- --list→ 1 test listed.work::authority6 passed, 0 failed (covers outside bytes altered, malformed markers, concurrent edit, timeout after PATCH, opt-in gate, exact outside-byte preservation).Refs #9431 (does not close the design issue; this is its scoped implementation follow-on).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.